using UnityGameFramework.Runtime;
using Unity.VisualScripting;

namespace LS.UGFUnits
{
    [UnitCategory("Unity Game Framework/Download")]
    public abstract class DownloadUnit: FrameworkComponentUnit<DownloadComponent>
    {
        [DoNotSerialize]
        public override DownloadComponent Target
        {
            get
            {
                var com = FrameworkObserver.Observing() ? FrameworkObserver.Download : null;
                CheckFrameworkAvailable();
                return com;
            }
        }
    }
}